using Pay.TO;

namespace Pay.Data {
	/// <summary>
	/// 提现表：mc_Transfer
	/// </summary>
	public partial class Transfer {
		public Transfer() {
		}

		/// <summary>
		/// 转账id
		/// </summary>
		public long Id { get; set; }
		/// <summary>
		/// 商户id
		/// </summary>
		public long MerchantId { get; set; }
		/// <summary>
		/// 提现商户id
		/// </summary>
		public long BindId { get; set; }
		/// <summary>
		/// 提现单号
		/// </summary>
		public string OrderNo { get; set; }
		/// <summary>
		/// 提现金额
		/// </summary>
		public decimal TransferAmount { get; set; }
		/// <summary>
		/// 实结金额＝提现金额-结算费
		/// </summary>
		public decimal Amount { get; set; }
		/// <summary>
		/// 状态：1提现申请，2完成，3转账中，4失败
		/// </summary>
		public TransferStatus Status { get; set; }
		/// <summary>
		/// 结算费
		/// </summary>
		public decimal SettleAmount { get; set; }
		/// <summary>
		/// 0商结算费
		/// </summary>
		public decimal MerchantSettle { get; set; }
		/// <summary>
		/// 平台结算费
		/// </summary>
		public decimal PlatSettle { get; set; }
		/// <summary>
		/// 支付信息id
		/// </summary>
		public long PayId { get; set; }
		/// <summary>
		/// 卡类型：0个人，1企业
		/// </summary>
		public int BusiType { get; set; }
		/// <summary>
		/// 开户银行
		/// </summary>
		public string BankName { get; set; }
		/// <summary>
		/// 卡号
		/// </summary>
		public string AccountNo { get; set; }
		/// <summary>
		/// 开户姓名/公司名称
		/// </summary>
		public string AccountName { get; set; }
		/// <summary>
		/// 身份证
		/// </summary>
		public string IdCard { get; set; }
		/// <summary>
		/// 申请时间
		/// </summary>
		public long ApplyTime { get; set; }
		/// <summary>
		/// 失败原因
		/// </summary>
		public string Fail { get; set; }
		/// <summary>
		/// 服务器回调该地址:成功、失败、不确定的通知
		/// </summary>
		public string Notify { get; set; }
		/// <summary>
		/// 批处理id
		/// </summary>
		public long? BatchId { get; set; }

		/// <summary>
		/// 商户
		/// </summary>
		public virtual Merchant Merchant { get; set; }
		/// <summary>
		/// 提现商户
		/// </summary>
		public virtual Merchant Binder { get; set; }
		/// <summary>
		/// 支付信息表：mc_PayInfo
		/// </summary>
		public virtual PayInfo PayInfo { get; set; }
		/// <summary>
		/// 批处理
		/// </summary>
		public virtual TransferBatch Batch { get; set; }
	}
}